# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-trollius
_pkgname=trollius
pkgver=2.2.1
pkgrel=1
pkgdesc='Deprecated, unmaintained port of the asyncio module (PEP 3156) on Python 2.'
arch=('any')
url='https://pypi.org/project/trollius/#files'
license=('Apache')
depends=('python2' 'python2-futures' 'python2-six')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('36ebc6a4125ec8a2f8b0093c1528f253e26725ffdeccb45bc9ddb51a4658c05b1b08fa5898e94b2008e49e65175ecb149aa9127bd8a986086b6d7e5fc95313c8')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

